package com.flashflexpro.flexdirector.model {
import mx.collections.ArrayCollection;

[Bindable]
[RemoteClass]
public class DtoAppInstRecording extends DtoAppInst{

    public function DtoAppInstRecording(){
        name = "Unnamed recording app inst";
    }

    public var recordingLaunchTime:uint = 0;

    public var recordingConnectedTime:uint = 0;

    public var recordingDisconnectedTime:uint = 0;

    [ArrayElementType("com.flashflexpro.flexdirector.model.DtoActionRecording")]
    public var recordings:ArrayCollection = new ArrayCollection();


    override public function destroy():void {
        var len:uint = recordings.length;
        for( var i:int = len - 1; i >= 0; i -- ){
            var sq:DtoActionRecording = recordings.getItemAt( i ) as DtoActionRecording;
            recordings.removeItemAt( i );
            sq.destroy();
        }
        super.destroy();
    }

    public var correspondingReplayAppInst:DtoAppInstReplay;



	override public function copyInto( parent:NameAndComment, newType:Class ):NameAndComment{
        throw new Error( this + " not supposed to be cloned!");
	}
}
}